<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>无标题文档</title>
		<link href="<%=request.getContextPath()%>/css/bgcss.css"
			rel="stylesheet" type="text/css" />
		<script type="text/javascript">
function check() {
	/*var admin=document.adminform;
	if(){
		alert("请填写管理员登陆帐号");
		admin.admin_login_name.focus();
		return false;
			
	}

	else{
		return true;
	}			*/
	return true;
}
</script>
	</head>

	<body>
		<jsp:include page="../frame/right_top.jsp" flush="true" />
		<div id="right_font">
			<img src="<%=request.getContextPath()%>/images/bg/main_14.gif" />
			您现在所在的位置：首页 &gt;&gt; 单品管理 &gt;&gt; 单品基本信息
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								&nbsp;
							</td>
							<td style="padding-right: 10px;">
								<div align="right">
									<table border="0" align="right" cellpadding="0" cellspacing="0">
										<tr>
											<td width="60">
												<table width="87%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
											<td width="60">
												<table width="90%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
											<td width="60">
												<table width="90%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
											<td width="52">
												<table width="88%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<form
						action="<%=request.getContextPath()%>/background/product?method=update"
						name="form" method="post" onsubmit="return check();">
						<table width="60%" border="0" cellpadding="0" cellspacing="1"
							bgcolor="#c9c9c9">
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">所属部门</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<select name="Product_Dept">
										<c:forEach items="${list}" var="item" varStatus="var">
											<option value="${item.dept_id }" ${(item.dept_id==obj.product_Dept_Id)?'selected':'' }>
											${item.dept_name}
									</option>
										</c:forEach>
									</select>
								</td>
							</tr>
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">名称</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<input type="text" name="Product_Name" size="20" maxlength="20"
										value="${obj.product_Name}" />
								</td>
							</tr>
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">规格</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<input type="text" name="Product_Specification" size="20"
										maxlength="20" value="${obj.product_Specification}" />
								</td>
							</tr>
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">单位</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<input type="text" name="Product_Unit" size="20" maxlength="20"
										value="${obj.product_Unit}" />
								</td>
							</tr>
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">显示状态</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<select name="Product_Status">
										<option value="1"${('1'== obj.product_Status)?'selected':'' }>
											显示
										</option>
										<option value="2"${('2'== obj.product_Status)?'selected':'' }>
											不显示
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">显示顺序</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<input type="text" name="Product_Sort" size="20" maxlength="20"
										value="${obj.product_Sort}" />
								</td>
							</tr>
							<tr>
								<td height="22" width="120" bgcolor="#FFFFFF">
									<div align="center">
										<strong><span class="STYLE1">备注</span> </strong>
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<textarea rows="5" cols="30" name="Product_Remark">${obj.product_Remark}</textarea>
								</td>
							</tr>
							<tr>

								<td height="22" bgcolor="#FFFFFF" colspan="2">
									<div align="center">
										<input type="hidden" name="product_Id"
											value="${obj.product_Id}" />
										<input type="submit" value="确认" />
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="button" value="返回"
											onclick="javascript:history.go(-1);" />
									</div>
								</td>

							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
	</body>
</html>
